   {include file=cart.header.html}
   <script type="text/javascript" src="{lib file=json2.js}"></script>
   <script type="text/javascript" src="{lib file=Shopcart.js}" charset="utf-8"></script>
   <script type="text/javascript" src="{lib file=ecmall.js}" charset="utf-8"></script>
	<!-- 内容 -->
	<div class="content-shop">
		<form action="{url app=order}" method="post" id="shopcart-confirm">
			<div class="shop-title f-cb">
				<div class="f-fl t1">
					<table width="100%">
						<tr>
							<td width="30" align="right">
								<input type="checkbox" checked="checked" name="shoptotal02" id="shoptotal02"  onclick="$$$.handel.binding(this,2,2)" />
							</td>
							<td width="34">
								<label for="shoptotal02">全选</label>
							</td>
							<td>商品</td>
						</tr>
					</table>
				</div>
				<div class="f-fl t2">规格</div>
				<div class="f-fl t3">单价（元）</div>
				<div class="f-fl t4">数量</div>
				<div class="f-fl t5">小计（元）</div>
				<div class="f-fl t6">操作</div>
			</div>           
            <!--{foreach from=$carts item=cart key=store_id}-->
			<div class="shop-every" id="shop_every_{$store_id}">
				<div class="shop-each">
					<div class="shop-seller f-cb">
						<div class="sellershade"></div>
						<div class="f-fl">
							<input type="checkbox" checked="checked" store="{$store_id}" onclick="$$$.handel.binding(this,1)" />
							&nbsp;&nbsp;
							<span>卖家：</span>
						 <a href="{url app=store&id=$store_id}">{$cart.store_name|escape}</a>
						</div>
						<div class="f-fl">                
               <!--{if $cart.im_qq}-->
                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin={$goods.im_qq}&amp;site=qq&amp;menu=yes"><img src="{res file=images/member/qq.jpg}" alt="QQ"></a>
                <!--{/if}-->
                <!--{if $cart.im_ww}-->
                <a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid={$goods.im_ww}&siteid=cntaobao&status=1&charset=utf-8"><img src="{res file=images/member/wangwang.jpg}" alt="旺旺"></a>
                <!--{/if}-->       
						</div>
					</div>
                     <!--{foreach from=$cart.goods item=goods}-->
					<div class="shop-detail" id="shop_detail_{$goods.rec_id}" goods_id="{$goods.goods_id}" spec_id="{$goods.spec_id}">
						<div class="shop-shade" rec="{$goods.rec_id}" store="{$store_id}"></div>
						<div class="shop-return-info"></div>
						<table width="100%" id="cart_item_{$goods.rec_id}" class="<!--{if $goods.price_type eq 1 }-->{$goods.goods_id}<!--{else}-->000<!--{/if}-->">
							<tr>
								<td width="40" class="binding">
									<input type="checkbox" checked="checked" name="{$goods.rec_id}" goodsid="{$goods.goods_id}" store="{$store_id}" onClick="$$$.handel.binding(this)">
									<div class="bindshade"></div>
								</td>
								<td width="100">
									<div class="imgwarp">
                                    <a href="{url app=goods&id=$goods.goods_id}" target="_blank"><img src="{$goods.goods_image}" alt="{$goods.goods_name|escape}" height="80" /></a>
									</div>
								</td>
								<td width="160">
									<p class="pt link"><a href="{url app=goods&id=$goods.goods_id}" target="_blank" class="linkbtn">{$goods.goods_name|escape}</a></p>
								</td>
								<td width="150">
									<p>{$goods.specification|escape}</p>
								</td>
								<td width="130" class="perprice" id="perprice_{$goods.rec_id}" changed="{$goods.price}"> 
                                  <!--{if $goods.price_type ==1 }-->
									 <!--{foreach from=$goods.price_list item=price}-->
                                        <!--{if $price.max_number}-->
                                 <p min="{$price.min_number}" max="{$price.max_number}" price="{$price.volume_price}" class="old <!--{if $price.volume_price eq $goods.price}-->current<!--{/if}-->">
					          {$price.min_number}-{$price.max_number}件：￥<i>{$price.volume_price}</i></p>
                                             <!--{else}-->
                                              <p gt="{$price.min_number}" price="{$price.volume_price}" class="old <!--{if $price.volume_price eq $goods.price}-->current<!--{/if}-->">
					                		≥ {$price.min_number}件：￥<i>{$price.volume_price}</i></p> 
                                               <!--{/if}-->
                                    <!--{/foreach}-->
                                       <!--{else}-->
                                    <p><i>￥</i><i class="price">{$goods.price}</i></p>
                                            <!--{/if}-->
								</td>
								<td width="150" class="pernum">
									<ol class="f-cb">
										<li class="f-fl">
											<a href="javascript:void(0)" class="decrease" onclick="$$$.decrease_quantity({$goods.rec_id});">-</a>
										</li>
										<li class="f-fl">
               <input id="input_item_{$goods.rec_id}" value="{$goods.quantity}" orig="{$goods.quantity}" changed="{$goods.quantity}" onblur="$$$.change_quantity({$goods.rec_id}, {$store_id}, {$goods.spec_id}, this);" class="quantity" type="text" />
                                         </li>
										<li class="f-fl">
											<a href="javascript:void(0)" class="increase" onclick="$$$.increase_quantity({$goods.rec_id})">+</a>
										</li>
									</ol>
								</td>
								<td width="120" class="pertotal">
                                    <p id="item{$goods.rec_id}_subtotal"><i></i><i id="pertotal_{$goods.rec_id}">{$goods.subtotal|price}</i></p>
                                    
								</td>
								<td width="108">
									<ul>
										<li>
											<a href="javascript:collect_goods({$goods.goods_id});" class="linkbtn">收藏</a>
											<br>
											<a href="javascript:void(0)" onclick="$$$.handel.singledel({$store_id}, {$goods.rec_id});" class="linkbtn">删除</a>
										</li>
									</ul>
								</td>
							</tr>
						</table>
					</div>
                     <!--{/foreach}-->
					
				</div>
				<div class="shop-each-total">
					<table width="100%">
						<tr>
							<td width="80" class="groupdel">
								<a href="javascript:void(0)" onclick="$$$.handel.groupdel({$store_id})">删除所选</a>
								<div class="groupdelshade"></div>
							</td>
							<td>
								店铺合计（不包含运费）：  <em></em><em class="ordertotal" id="ordertotal_{$store_id}">{$cart.amount|price}</em>
                            
							</td>
						</tr>
					</table>
				</div>
			</div>
            <!--{/foreach}-->
			
			<div class="shop-total f-cb">
				<ul class="shop-total-l f-cb">
					<li>
						<input type="checkbox" checked="checked" name="shoptotal" id="shoptotal"  onclick="$$$.handel.binding(this,2,2)" />
						<label for="shoptotal">全选</label>
					</li>
					<!--<li>
						<a href="javascript:void(0)" onclick="$$$.handel.favorite('all')">批量收藏</a>
					</li> -->
					<li>
						<a href="javascript:void(0)" onclick="$$$.handel.alldel()">批量删除</a>
					</li>
				</ul>
				<ul class="shop-total-r f-cb">
					<li>
						已选商品总数
						<em id="totalnum">{$carts_status.quantity}</em>
					</li>
					<li>
						商品总金额（不含运费）：
						
						<em></em><em id="totalprice">{$carts_status.amount|price}</em>
						
					</li>
					<li style="padding-top:10px;line-height:20px;">
                         		<a href="{url app=order}" class="subbtnhsb" id="shopcar_submit">下一步</a>
					</li>
				</ul>
			</div>
			<div class="shop-bg"></div>
		</form>
		<div id="no-shop" class="no-shop f-dn">
		    <ul>
		        <li>
		            <h3>您的购物车为空，请赶快行动吧！您可以：</h3>
		        </li>
		        <li>
		            1.<a href="{$site_url}" class="linkbtn">去商场</a>，找您喜欢的商品！
		        </li>
		        <li>
		            2.<a href="index.php?app=my_favorite" class="linkbtn">去收藏夹</a>，看看您收藏的商品！
		        </li>
		    </ul>
		</div>
	</div>
	<!-- 页脚 --> 
{include file="footer.index.simple.html"}